package com.lvhx.springboot.callservice;

public abstract class AbstractBaseService implements ServiceExecutorAware{
    private IServiceExecutor serviceExecutor;
    @Override
    public void setServiceExecutor(IServiceExecutor serviceExecutor) {
        this.serviceExecutor = serviceExecutor;
    }

    protected <T> T callService(String serviceName,Object request){
        return this.serviceExecutor.execute(serviceName,request);
    }
}
